<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>数据查询</title>
</head>

<body>
    <center>
        <h1>数据查询</h1>
        <form action="" method="GET">
            起始日期：<input type="text" name="starttime" />&nbsp;结束日期：<input type="text" name="endtime" />
            <br /> 工号：
            <input type="text" name="agentnum" placeholder="10086" />&nbsp;姓名：<input type="text" name="agentname" placeholder="张三" />
            <br /> 业务：
            <select name="select_proj" id="">
                <option>主推业务-1</option>
                <option>主推业务-2</option>
                <option>主推业务-3</option>
                <option>主推业务-4</option>
            </select>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/modify">修改业务</a>
            <br />
            <br />
            <input type="submit" value="查询" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/download">导出</a><br />
            <br />
            <hr />
            <table border="1px" width="600px">
                <tr style="text-align: center;">
                    <th>日期</th>
                    <th>工号</th>
                    <th>姓名</th>
                    <th>业务</th>
                    <th>外呼量</th>
                    <th>接通量</th>
                    <th>主推成单量</th>
                    <th>备注</th>
                </tr>
                {% for i in userlist %}
                <tr style="text-align: center;">
                    <td>{{ i.date_input }}</td>
                    <td>{{ i.agent_num }}</td>
                    <td>{{ i.agent_name }}</td>
                    <td>{{ i.select_proj }}</td>
                    <td>{{ i.agent_outcnt }}</td>
                    <td>{{ i.agent_anscnt }}</td>
                    <td>{{ i.agent_ordercnt }}</td>
                    <td>{{ i.agent_memo }}</td>
                </tr>
                {% endfor %}
            </table>
        </form>
    </center>
</body>

</html>